﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WechatModel
{
    public class W_OAuthInfo
    {
        private string _access_token;
        /// <summary>
        /// 网页授权token
        /// </summary>
        public string access_token
        {
            get { return _access_token; }
            set { _access_token = value; }
        }

        private int _expires_in;
        /// <summary>
        /// 有效时间（秒）
        /// </summary>
        public int expires_in
        {
            get { return _expires_in; }
            set { _expires_in = value; }
        }

        private string _refresh_token;
        /// <summary>
        /// 刷新授权Token时用到的令牌
        /// </summary>
        public string refresh_token
        {
            get { return _refresh_token; }
            set { _refresh_token = value; }
        }

        private string _openid;
        /// <summary>
        /// 获取到的用户openid
        /// </summary>
        public string openid
        {
            get { return _openid; }
            set { _openid = value; }
        }

        private string _scope;
        /// <summary>
        /// 授权类型
        /// </summary>
        public string scope
        {
            get { return _scope; }
            set { _scope = value; }
        }
    }
}
